LOCAL_PATH := $(call my-dir)/../../..
PROJECT_JNI_PATH := android/GreyscaleCodeLibrary/jni

include $(CLEAR_VARS)

LOCAL_CPP_FEATURES := exceptions
LOCAL_LDLIBS := -llog -ljnigraphics

LOCAL_MODULE    := greyscalecode
LOCAL_SRC_FILES := $(PROJECT_JNI_PATH)/greyscalecode.cpp \
    zxing/FormatException.cpp \
    zxing/Exception.cpp \
    zxing/Binarizer.cpp \
    zxing/BarcodeFormat.cpp \
    zxing/ResultPoint.cpp \
    zxing/Result.cpp \
    zxing/ReaderException.cpp \
    zxing/NotFoundException.cpp \
    zxing/LuminanceSource.cpp \
    zxing/common/DecoderResult.cpp \
    zxing/common/Counted.cpp \
    zxing/common/BitMatrix.cpp \
    zxing/common/BitArray.cpp \
    zxing/common/Array.cpp \
    zxing/common/Str.cpp \
    zxing/common/PerspectiveTransform.cpp \
    zxing/common/IllegalArgumentException.cpp \
    zxing/common/HybridBinarizer.cpp \
    zxing/common/GridSampler.cpp \
    zxing/common/GreyscaleRotatedLuminanceSource.cpp \
    zxing/common/GlobalHistogramBinarizer.cpp \
    zxing/common/DetectorResult.cpp \
    zxing/common/detector/WhiteRectangleDetector.cpp \
    zxing/common/reedsolomon/ReedSolomonException.cpp \
    zxing/common/reedsolomon/ReedSolomonDecoder.cpp \
    zxing/common/reedsolomon/GF256Poly.cpp \
    zxing/common/reedsolomon/GF256.cpp \
    zxing/datamatrix/detector/DetectorDM.cpp \
    zxing/common/GreyscaleLuminanceSource.cpp \
    newcode/ReedSolomonEncoder.cpp \
    newcode/ByteMatrix.cpp \
    newcode/GreyscaleGridSampler.cpp \
    newcode/decoder/DecoderGC.cpp \
    newcode/detector/DetectorGC.cpp \
    newcode/encoder/EncoderGC.cpp \
    newcode/GreyscaleDetectorResult.cpp \
    newcode/GreyscaleCodeReader.cpp

include $(BUILD_SHARED_LIBRARY)
